package cn.sz.hy.adapter.center;

import org.eclipse.swt.events.MouseEvent;

import cn.sz.hy.adapter.MouseAdapterBasic;
import cn.sz.hy.common.Globel;
import cn.sz.hy.ui.frame.CenterPanel;

public class AddColumnAdapter extends MouseAdapterBasic {

	@Override
	public void execute(MouseEvent e) {
		CenterPanel centerPanel = (CenterPanel) eBus
				.getComponent(Globel.CENTER_PANEL_ID);
		if (centerPanel != null) {
			centerPanel.createBlankItem();
		}
		centerPanel.updateEditSelect();
	}
}
